package by.msokoloff.javaweb2015.services;

import java.util.List;

import javax.persistence.metamodel.SingularAttribute;

import org.springframework.transaction.annotation.Transactional;

import by.msokoloff.javaweb2015.datamodel.Plane;

public interface PlaneService {

	Plane get(Integer id);

	List<Plane> getAll();

	@Transactional
	void createOrUpdate(Plane plane);

	@Transactional
	void delete(Plane plane);

	@Transactional
	void deleteAll();

	long getCount();

	List<Plane> getAll(SingularAttribute<Plane, ?> sortParam, boolean ascending, int first, int count);

}
